package lang;

import bean.Person;
import org.junit.Test;

/**
 * Created by xiao on 2017/12/17 下午2:06.
 */
public class MxObject {

    @Test
    public void mxGetClass() {
        Integer n = 0;
        Class<? extends Number> c = n.getClass();
        System.out.println(c);
    }

    @Test
    public void mxClone() throws CloneNotSupportedException {
        Person p1 = new Person("Mx");
        Person p2 = p1.clone();
        System.out.println(p1);
        System.out.println(p2);
        System.out.println(p1.equals(p2));
        System.out.println(p2.getName());
    }

    @Test
    public void mxWait() throws InterruptedException {
        Object lock = new Object();
        lock.wait();
    }
}
